<div ng-controller="pv1" class="" ng-cloak style="width: 100%;">
	<div style="position:absolute;left:0px;top:-40px;width:100%;height:40px;">
	</div>
    <style type="text/css">
        *{margin:auto;padding:0}
        body{
            background-color: #EEEEEE;
        }
        .buttongroup .button{
            width: 30%;
        }
        #minirefresh{
            margin-top: 2.8rem;
        }
        .minirefresh-scroll {
            position: relative;
            background: #ffffff;
        }
        .minirefresh-wrap {
            z-index: -1;
        }
        .menu .menu-title{
            color: #0096d6;
        }

    </style>
    <!-- head -->
    <f-card style="background-color:#0197D6;overflow: auto;padding-bottom: 10px;height:46px;">
        <!-- 搜索类型 -->
        <!--  下拉f-dropdown -->
        <!--<f-dropdown style="float: left;margin-left: 0;width: 25%">所有</f-dropdown>-->

        <f-dropdown id="city" style="float: left;margin-left: 0;width: 25%" class="selected" value="所有" label="所有"  method="getPvOrders">
            <f-option sort="0" value="所有">所有</f-option>
            <!--<f-option sort="1" value="1">待派单</f-option>-->
            <f-option sort="1" value="2">已派单</f-option>
            <f-option sort="2" value="3">已暂停</f-option>
            <f-option sort="3" value="4">待签名</f-option>
            <!--<f-option sort="5" value="5">已结单</f-option>-->
            <!--<f-option sort="6" value="6">已关单</f-option>-->
        </f-dropdown>

        <f-packinput> <f-input id="customeName" style="float: left;width: 50%;background-color:#00ADE0;border-radius: 20px;" ng-model="customeName" method="checkPvCustomeName">请输入</f-input></f-packinput>
        <!-- 日历 -->
        <!--<f-time style="float: left"><img src="img/rili.png" style="width:35%;height: 90%;margin-top: 3px;margin-left: 28px"></f-time>-->
        <f-time style="float: right;font-size: 16px;color:#ffffff;width: 20%;line-height: 30px;margin-top: 10px;margin-bottom: 5px;text-align: center;" ng-if="customeFlag" ng-click="getOrders();">搜索</f-time>

    </f-card>


    <div id="minirefresh" class="minirefresh-wrap">
        <div class="minirefresh-scroll">
    <!-- card1 -->
    <f-card style="border-bottom: 2px solid #F6F6F6;">
        <f-card-label style="float: left;width: 100%;" ng-bind="'新增派单'+newCaseTotal+'台'">--</f-card-label>
        <f-card-label style="float: left;width: 100%;" ng-bind="'总计'+totalCount+'个客户列表，'+caseTotal+'个案例'">--</f-card-label>
    </f-card>
    <!-- card2 -->
        <div style="margin-bottom: 60px;">
    <div ng-repeat="item in pageData">
        <f-card>
            <f-card-title style="width: 55%;float: left" ng-bind="item.customeName">--</f-card-title>
            <span ng-if="item.isOrder==1" style="color: red;font-style: italic;width: 35px;text-align:left;float: left;font-weight: bold;line-height: 30px;">new</span>
            <f-a style="width: 35%;float: left"><f-status-button style="background-color: #7D94FC;float: right;">PV</f-status-button></f-a>
        </f-card>

        <f-card>
            <f-card-label style="float: left">联系人</f-card-label>
            <f-card-text style="float: left" ng-bind="item.contactPerson">--</f-card-text>

            <f-card-label style="float: left">联系电话</f-card-label>
            <!--<f-a style="float: left" ng-bind="item.telephone">&#45;&#45;</f-a>-->
            <f-a style="float: left;color:#0197d6;display: flex;justify-content: flex-end;">
                <img src="img/icon_telephone.png" style="width: 12px;height:12px;margin-top: 9px;">
                <a href="tel:{{item.telephone}}" style="color:#0197d6;width: 87px;">{{item.telephone}}</a>
            </f-a>

            <f-card-label style="float: left;width: 25%">联系地址</f-card-label>
            <f-card-text style="float: left;width: 75%" ng-bind="item.address">--</f-card-text>
        </f-card>
        <hr style="border: dashed;border-width: 0.5px;border-color: #ccc;"/>
        <f-card style="border-bottom: 2px solid #F6F6F6;">
            <f-card-label style="float: left;width: 80%" ng-bind="'总计：'+item.total+'台设备'">--</f-card-label>
            <f-card-text style="float: left;width: 20%;color:#51ABDD;" ng-click="sign(item.pvCases)" >
                <img src="img/icon_sign.png" style="float:left;width:12px;height:12px;margin-top: 9px;margin-left: 20px">
                签字
            </f-card-text>
            <f-card-label style="float: left;width: 100%" ng-bind="item.summaryMessage">--</f-card-label>
        </f-card>

        <!-- card2 -->

        <div ng-repeat="subitem in item.pvCases">
            <f-card style="background-color: #f7f7f7">
                <f-card-title style="width: 75%;float: left;display: flex;">{{subitem.caseNum}}
                    <f-status-circle style="background-color: #018424;float: right"></f-status-circle>
                    <f-card-text style="float: right;width: 55px;padding-right:5px;" ng-bind="subitem.status==1?'待派单':subitem.status==2?'已派单':subitem.status==3?'已暂停':
        subitem.status==4?'待签名':subitem.status==5?'已结单':subitem.status==6?'已关单':'未知'"></f-card-text>
                    <f-card-text ng-if="subitem.isOrder==1" style="color: red;font-style: italic;width: 35px;padding: 0;text-align:left;">new</f-card-text>
                </f-card-title>
                <f-a ng-click="pv3_0(subitem.caseId)" style="width:25%;float: right;font-size:14px;padding-right: 5px;">更多详情&gt;&gt;</f-a>

                <f-card-label style="float: left">产品名称</f-card-label>
                <f-card-text style="float: left" ng-bind="transfer(subitem.productInfo,'model');"></f-card-text>

                <f-card-label style="float: left">产品编号</f-card-label>
                <f-card-text style="float: left" ng-bind="transfer(subitem.productInfo,'product_number');"></f-card-text>

                <f-card-label style="float: left">产品序列号</f-card-label>
                <f-card-text style="float: left" ng-bind="transfer(subitem.productInfo,'serial_number');"></f-card-text>

                <f-card-label style="float: left;width: 25%">派单时间</f-card-label>
                <f-card-text style="float: left;width: 75%" ng-bind="subitem.createTime | date:'yyyy-MM-dd'"></f-card-text>


                <f-card-label style="float: left">截止日期</f-card-label>
                <f-card-text style="float: left" ng-bind="subitem.dueDate | date:'yyyy-MM-dd'"></f-card-text>
            </f-card>

            <f-card style="border-bottom: 2px solid #F6F6F6;" ng-if="subitem.status==2 || subitem.status==4">
                <f-card-label style="float: left;width: 50%;color:#51ABDD;">是否找到打印机？</f-card-label>

                <f-card-text style="display:flex;width: 50%;align-items: center;color:#000;text-align: center;justify-content: space-around;">
                   <input type="radio" name="radio{{$index}}" style="width:30px;" ng-checked="subitem.isFond==1"  ng-click="jumpTo(1,subitem.caseId);"/>是
                   <input type="radio" name="radio{{$index}}" style="width:30px;margin-left:30px" ng-checked="subitem.isFond==0"  ng-click="jumpTo(2,subitem.caseId);"/>否
                </f-card-text>
            </f-card>
            <f-card style="border-top:1px solid #ccc;height: 7px;background-color: #eeeeee;"></f-card>

        </div>
    </div>
</div>
        </div>
    </div>
            <!--底部菜单-->
    <div class="menu" style="z-index:2;">
        <div class="menu-content">
            <img src="./img/workarea_pressed.png">
            <span class="menu-title">工作区</span>
        </div>
        <div class="menu-content" ng-click="jumpTo(3);">
            <img src="./img/my_default.png">
            <span>我的</span>
        </div>
    </div>


</div>